﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace Patin_task_1
{
    class Program
    {
        static void Main(string[] args)
        {
            Team myTeam = new Team();
            do
            {
                Console.WriteLine("Enter your choise");
                switch (Console.ReadLine())
                {
                    case "1": { myTeam.Factory = new FactoryCSharp(); myTeam.CreateTeam(5, 5); }
                        break;
                    case "2": { myTeam.Factory = new FactoryJava(); myTeam.CreateTeam(5, 5); }
                        break;
                    default: { Console.WriteLine("Make right choise"); }
                        break;
                }
                Console.WriteLine(myTeam.ToString());
            }
            while (true);
        }
    }
}
